cmake_minimum_required(VERSION 2.6)
project(triangeceres)

find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIR})
link_libraries(${OpenCV_LIBRARY_DIR})

find_package(Ceres REQUIRED)
include_directories(${CERES_INCLUDE_DIRS})
link_libraries(${CERES_LIBRARY_DIRS})


add_executable(triangeceres main.cpp)
target_link_libraries(triangeceres ${OpenCV_LIBS} ${CERES_LIBRARIES})

install(TARGETS triangeceres RUNTIME DESTINATION bin)
